/**
 * 类型推断：
 * 
 * @flow
 */

function square (n) {
    return n * n
}

const num1: number = 11

const symbol: Symbol = new Symbol()

function foo(callback: (string, number) => void) {
    callback('111', 222)
}

foo(function(str, n) {

})